/*
 *  Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.yth.stafffiles;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.plian.system.entity.yth.YthBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 人事——员工档案-学历学位实体类
 *
 * @author zke
 * @since 2023-02-10
 */
@Data
@TableName("personnel_person_education")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PersonEducation对象", description = "人事——员工档案-学历学位")
public class PersonEducation extends YthBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long personId;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    private LocalDate beginDate;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    private LocalDate endDate;
    /**
     * 教育类型
     */
    @ApiModelProperty(value = "教育类型")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer educationType;
    /**
     * 学历
     */
    @ApiModelProperty(value = "学历")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer education;
    /**
     * 学位
     */
    @ApiModelProperty(value = "学位")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer academicDegree;
    /**
     * 毕业院校
     */
    @ApiModelProperty(value = "毕业院校")
    private String graduateColleges;
    /**
     * 专业
     */
    @ApiModelProperty(value = "专业")
    private String major;
    /**
     * 是否是最高学历（0否，1是）
     */
    @ApiModelProperty(value = "是否是最高学历（0否，1是）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer highestEducation;
    /**
     * 是否是最高学位（0否，1是）
     */
    @ApiModelProperty(value = "是否是最高学位（0否，1是）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer highestMajor;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer sort;

}
